package xyz.gzdxc.common.mysql.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Date;

@Table("xh_cm_menu")
public class MenuEntity {

    @Id
    private Long id;

    @Column("menu_code")
    private String menuCode;

    @Column("par_menu_code")
    private String parMenuCode;

    @Column("menu_name")
    private String menuName;

    @Column("name")
    private String name;

    @Column("path")
    private String path;

    @Column("priv_code")
    private String privCode;

    @Column("create_by")
    private String createBy;

    @Column("create_dt")
    private Date createDt;

    @Column("update_by")
    private String updateBy;

    @Column("update_dt")
    private Date updateDt;

    @Column("del_status")
    private String delStatus;

    @Column("sequence")
    private Integer sequence;

    @Column("icon")
    private String icon;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getParMenuCode() {
        return parMenuCode;
    }

    public void setParMenuCode(String parMenuCode) {
        this.parMenuCode = parMenuCode;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPrivCode() {
        return privCode;
    }

    public void setPrivCode(String privCode) {
        this.privCode = privCode;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public String getDelStatus() {
        return delStatus;
    }

    public void setDelStatus(String delStatus) {
        this.delStatus = delStatus;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    public String toString() {
        return "MenuEntity{" +
                "id=" + id +
                ", menuCode='" + menuCode + '\'' +
                ", parMenuCode='" + parMenuCode + '\'' +
                ", menuName='" + menuName + '\'' +
                ", name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", privCode='" + privCode + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createDt=" + createDt +
                ", updateBy='" + updateBy + '\'' +
                ", updateDt=" + updateDt +
                ", delStatus='" + delStatus + '\'' +
                ", sequence=" + sequence +
                ", icon='" + icon + '\'' +
                '}';
    }
}
